.class public Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;
.super Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;
.source "PictureDecorationItem.java"


# instance fields
.field private j:Ljava/lang/String;

.field private k:Landroid/graphics/RectF;

.field private l:Landroid/graphics/Bitmap;

.field private m:Landroid/graphics/Paint;

.field private n:I

.field private o:I


# direct methods
.method public constructor <init>(FFII)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;-><init>(FF)V

    .line 2
    new-instance p1, Landroid/graphics/RectF;

    invoke-direct {p1}, Landroid/graphics/RectF;-><init>()V

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->k:Landroid/graphics/RectF;

    .line 3
    new-instance p1, Landroid/graphics/Paint;

    invoke-direct {p1}, Landroid/graphics/Paint;-><init>()V

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->m:Landroid/graphics/Paint;

    const/4 p2, 0x1

    .line 4
    invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 5
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->m:Landroid/graphics/Paint;

    invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setDither(Z)V

    .line 6
    iput p3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->n:I

    .line 7
    iput p4, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->o:I

    const/4 p1, 0x0

    .line 8
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->h(F)V

    const/4 p1, 0x0

    .line 9
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->a(Z)V

    return-void
.end method

.method private a(FZ)V
    .locals 3

    if-eqz p2, :cond_0

    .line 8
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->b()F

    move-result p2

    mul-float p2, p2, p1

    .line 9
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->a()F

    move-result v0

    mul-float v0, v0, p1

    .line 10
    invoke-static {p2, v0}, Ljava/lang/Math;->min(FF)F

    move-result v1

    const/high16 v2, 0x42a00000    # 80.0f

    cmpg-float v1, v1, v2

    if-gez v1, :cond_0

    .line 11
    invoke-static {p2, v0}, Ljava/lang/Math;->min(FF)F

    move-result p2

    div-float/2addr v2, p2

    mul-float p1, p1, v2

    .line 12
    :cond_0
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->a(F)V

    return-void
.end method

.method private c(Landroid/graphics/Canvas;)V
    .locals 4

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->l:Landroid/graphics/Bitmap;

    if-nez v0, :cond_0

    return-void

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->k:Landroid/graphics/RectF;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->b()F

    move-result v1

    iput v1, v0, Landroid/graphics/RectF;->right:F

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->k:Landroid/graphics/RectF;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->a()F

    move-result v1

    iput v1, v0, Landroid/graphics/RectF;->bottom:F

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->l:Landroid/graphics/Bitmap;

    const/4 v1, 0x0

    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->k:Landroid/graphics/RectF;

    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->m:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/RectF;Landroid/graphics/Paint;)V

    return-void
.end method


# virtual methods
.method public a(F)V
    .locals 1

    const/4 v0, 0x1

    .line 7
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->a(FZ)V

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 1

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->j:Ljava/lang/String;

    const/4 v0, 0x0

    .line 2
    invoke-static {p1, v0}, Lcom/esfile/screen/recorder/utils/d;->a(Ljava/lang/String;Z)Lcom/esfile/screen/recorder/media/util/y;

    move-result-object p1

    .line 3
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v0

    int-to-float v0, v0

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result p1

    int-to-float p1, p1

    invoke-virtual {p0, v0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->b(FF)V

    return-void
.end method

.method public a(Z)V
    .locals 3

    .line 4
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->a(Z)V

    if-eqz p1, :cond_0

    .line 5
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->l:Landroid/graphics/Bitmap;

    if-nez p1, :cond_0

    .line 6
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->j:Ljava/lang/String;

    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->n:I

    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->o:I

    mul-int v2, v0, v1

    invoke-static {p1, v2, v0, v1}, Lcom/esfile/screen/recorder/utils/d;->a(Ljava/lang/String;III)Landroid/graphics/Bitmap;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->l:Landroid/graphics/Bitmap;

    :cond_0
    return-void
.end method

.method public b(F)V
    .locals 0

    return-void
.end method

.method public b(FF)V
    .locals 0

    .line 1
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->g(F)V

    .line 2
    invoke-virtual {p0, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->f(F)V

    return-void
.end method

.method public b(Landroid/graphics/Canvas;)V
    .locals 0

    .line 3
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->b(Landroid/graphics/Canvas;)V

    .line 4
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->c(Landroid/graphics/Canvas;)V

    return-void
.end method

.method public c(F)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->a(FZ)V

    return-void
.end method

.method public m()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/e;->j:Ljava/lang/String;

    return-object v0
.end method

.method public n()F
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->a()F

    move-result v0

    return v0
.end method

.method public o()F
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->b()F

    move-result v0

    return v0
.end method
